package com.ostrich.cloud.ostrichDistributionService.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 配送订单表
 * </p>
 *
 * @author Tom
 * @since 2022-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("delivery_order")
public class DeliveryOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "delivery_id", type = IdType.AUTO)
    private Integer deliveryId;

    /**
     * 顾客地址id
     */
    private Integer customerLocationId;

    /**
     * 顾客电话
     */
    private Long customerPhone;

    /**
     * 配送订单号
     */
    private Long deliveryNumber;

    /**
     * 骑手id
     */
    private Integer riderId;

    /**
     * 骑手手机号
     */
    private Long riderPhoneNumber;

    /**
     * 商家id
     */
    private Integer businessmanId;

    /**
     * WATING未接单|DISPATCHING配送中|FINISH完成
     */
    private String status;

    /**
     * 开始时间
     */
    private Date createTime;

    /**
     * 结束时间
     */
    private Date finishTime;


}
